package com.nt.train.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Import + ImportSelector bean
 * 实现ImportSelector接口的selectImports方法
 * @author hlf
 * @version 1.0
 * @date 2022/8/3 16:18
 */
public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.nt.train.dto.Cat"};
    }

}
